<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-1.12.4.min.js"></script>
</head>
<body>
<script>
var token = localStorage.getItem("token");
$.ajax({
    url: "http://127.0.0.1:8080/day18/test5_submit",
    dataType: "json",
    type: "post",
    beforeSend: function (request) {
        request.setRequestHeader("Authorization", "Bearer " + token);
    },
    success: function (data) {
        if (data.code == 0) {
            alert(data.msg);
        } else {
            alert(data.msg);
        }
    }
});
</script>
</body>
</html>
